/* 参数：校验数据(数组)，正则，需要校验的内容 */
export const bankCardTest=(bankCard,value)=>{
	let cardInfo={};
	this.bankCard.filter((item,ind)=>{
		 let b=item.patterns.filter((value,index)=>{
			let a=this.inputValue.search(value.reg)
			if(a!=-1)return index
		})
		if(b.length!=0){
			cardInfo=item
			for(var k in cardInfo){
				if(k=='patterns')delete cardInfo[k]
			}
			cardInfo.patterns=b
		}
	})
	return cardInfo
}